//
//  AboutUsVC.m
//  hnGovernment
//
//  Created by 安仔 on 17/3/6.
//  Copyright © 2017年 安仔. All rights reserved.
//

#import "AboutUsVC.h"

@interface AboutUsVC ()

@property (nonatomic, strong) UILabel *versionLab;
@property (nonatomic, strong) UILabel *informLab;


@end

@implementation AboutUsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = RGB(243, 243, 243);
    self.title = NSLocalString(@"关于我们");
    
    
    UIImageView *signImg = [[UIImageView alloc] init];
    signImg.clipsToBounds = YES;
    signImg.image = [UIImage imageNamed:@"河南政务logo"];
    signImg.backgroundColor = [UIColor clearColor];
    [self.view addSubview:signImg];
    [signImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.view.mas_centerX);
        make.top.mas_equalTo(244 * m6Scale);
        make.size.mas_equalTo(CGSizeMake(300 * m6Scale, 80 * m6Scale));
    }];
    
    self.versionLab = [[UILabel alloc] init];
    self.versionLab.text = NSLocalString(@"版本：1.0.0");
    self.versionLab.textColor = [UIColor lightGrayColor];
    self.versionLab.textAlignment = NSTextAlignmentCenter;
    self.versionLab.font = [UIFont systemFontOfSize:28 * m6Scale];
    [self.view addSubview:self.versionLab];
    [self.versionLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.view.mas_centerX).offset(10 * m6Scale);
        make.top.mas_equalTo(signImg.mas_bottom).offset(30 * m6Scale);
        make.size.mas_equalTo(CGSizeMake(KScreenWidth, 40 * m6Scale));
    }];
    
    
    self.informLab = [[UILabel alloc] init];
    self.informLab.textColor = RGB(103, 103, 103);
    self.informLab.textAlignment = NSTextAlignmentLeft;
    self.informLab.numberOfLines = 0;
    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
    paragraphStyle.lineSpacing = 8 * m6Scale;// 字体的行间距
    NSDictionary *attributes = @{
                                 NSFontAttributeName:[UIFont systemFontOfSize:36 * m6Scale],
                                 NSParagraphStyleAttributeName:paragraphStyle
                                 };
    self.informLab.attributedText = [[NSAttributedString alloc] initWithString:NSLocalString(@"官方网站：www.henan.gov.cn \n电子邮箱：hnzw@hn.cn \n服务热线：0371-65795967") attributes:attributes];
    [self.view addSubview:self.informLab];
    [self.informLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.view.mas_centerX);
        make.top.mas_equalTo(self.versionLab.mas_bottom).offset(155 * m6Scale);
        make.size.mas_equalTo(CGSizeMake(490 * m6Scale, 170 * m6Scale));
    }];

    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
